package com.mdx.service;

import com.github.pagehelper.PageInfo;
import com.mdx.entity.EbookEntry;

import java.util.List;

public interface EntryService {
    //按分类查询并分页
    PageInfo<EbookEntry> getByCategoryId(Integer page, Integer size, Integer categoryid);

    //按id查询
    EbookEntry getById(Integer id);

    //删除
    void delete(Integer id);

    //修改
    void update(EbookEntry ebookEntry);

    //添加
    void add(EbookEntry ebookEntry);
}
